package com.atkxp.stustatusmasystem.mapper;

import com.atkxp.stustatusmasystem.pojo.DropApplication;
import com.atkxp.stustatusmasystem.pojo.SwitchApplication;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author user
 * @declaration
 * @create 2023/5/31-20:39
 */
@Repository
@Mapper
public interface ApplicationMapper {
    int sendSwitchApplication(SwitchApplication switchApplication);

    int receiveSwitchApplication(int id);

    int sendDropApplication(DropApplication dropApplication);

    int receiveDropApplication(int id);

    int refuseSwitchApplication(int id);

    int refuseDropApplication(int id);

    List<SwitchApplication> getAllSwitchApplicationBySid(int sid);

    List<DropApplication> getAllDropApplicationBySid(int sid);

    List<SwitchApplication> getAllSwitchApplicationByTid(String tid);

    List<DropApplication> getAllDropApplicationByTid(String tid);

    SwitchApplication getSwitchApplicationById(int id);

    DropApplication getDropApplication(int id);
}
